﻿using System;
using App_Code.consultasSql.ConsultasSeguridad;

public partial class Stdby_ABM_ABM : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Usuarios usuario = (Usuarios)Session["Usuario"];
        if(usuario != null)
        {
            bool habilitar = usuario.VerificarPermisoUsuario("ABM", true, false);
            Button1.Enabled = habilitar;
            //Button2.Enabled = habilitar;
            //Button3.Enabled = habilitar;
            //Button4.Enabled = habilitar;
            //Button5.Enabled = habilitar;
            //Button6.Enabled = habilitar;
            //Button7.Enabled = habilitar;
            //Button8.Enabled = habilitar;
            //Button9.Enabled = habilitar;
            //Button10.Enabled = habilitar;
            //Button11.Enabled = habilitar;
            //Button12.Enabled = habilitar;
            //Button13.Enabled = habilitar;
        }
    }
}